/* 心跳 */
#heartbeat {
  color: red;
  animation: iconAnimate 1.33s ease-in-out infinite;
}
@-moz-keyframes iconAnimate {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(0.9);
  }
  20%,
  40%,
  60%,
  80% {
    transform: scale(1.1);
  }
  50%,
  70% {
    transform: scale(1.1);
  }
}
@-webkit-keyframes iconAnimate {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(0.9);
  }
  20%,
  40%,
  60%,
  80% {
    transform: scale(1.1);
  }
  50%,
  70% {
    transform: scale(1.1);
  }
}
@-o-keyframes iconAnimate {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(0.9);
  }
  20%,
  40%,
  60%,
  80% {
    transform: scale(1.1);
  }
  50%,
  70% {
    transform: scale(1.1);
  }
}
@keyframes iconAnimate {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(0.9);
  }
  20%,
  40%,
  60%,
  80% {
    transform: scale(1.1);
  }
  50%,
  70% {
    transform: scale(1.1);
  }
}

/* 更换字体 */
@font-face {
  font-family: "tzy";
  /* 字体名自定义即可 */
  src: url("https://cdn.jsdelivr.net/gh/huoyou/cdn/hexo/fonts/ZhuZiAWan.woff2");
  /* 字体文件路径 */
  font-display: swap;
}

body,
.gitcalendar {
  font-family: tzy !important;
}

/* 局部css优化 */
.categoryBar-list {
  max-height: 400px;
}

.clock-row {
  overflow: hidden;
  text-overflow: ellipsis;
}

/*3s为加载动画的时间，1为加载动画的次数，ease-in-out为动画效果*/

#page-header,
#web_bg {
  -webkit-animation: imgblur 2s 1 ease-in-out;
  animation: imgblur 2s 1 ease-in-out;
}

@keyframes imgblur {
  0% {
    filter: blur(5px);
  }
  100% {
    filter: blur(0px);
  }
}

/*适配使用-webkit内核的浏览器 */

@-webkit-keyframes imgblur {
  0% {
    -webkit-filter: blur(5px);
  }
  100% {
    -webkit-filter: blur(0px);
  }
}
.table-wrap img {
  margin: 0.6rem auto 0.1rem !important;
}

/* 标签外挂 网站卡片 start */

.site-card-group img {
  margin: 0 auto 0.1rem !important;
}

.site-card-group .info a img {
  margin-right: 10px !important;
}

[data-theme="dark"] .site-card-group .site-card .info .title {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .site-card-group .site-card .info .desc {
  color: rgba(255, 255, 255, 0.7) !important;
}

.site-card-group .info .desc {
  margin-top: 4px !important;
}
/* 代码块颜色 */

figure.highlight pre .addition {
  color: #00bf03 !important;
}

/* 部分页面插入视频 */
#index-video {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 80vh;
  width: 100%;
  object-fit: cover;
}
@media only screen and (max-width: 768px) {
  #index-video {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .bg-cover {
    background-image: none !important;
  }
}

#rightside {
  right: -58px;
  bottom: 68px;
}
#rightside > div > button {
  background-color: #ff69b4 !important;
}

/* 鼠标经过头像特效 */
#aside-content .card-info .is-center:hover {
  background: url(https://cdn.jsdelivr.net/gh/huoyou/cdn/hexo/imgs/avater_hover.gif);
}

/* 修改播放器 -- 播放时样式 */
.aplayer.no-destroy .aplayer-pic .aplayer-pause {
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  bottom: 50%;
  right: 50%;
  margin: 0 -15px -15px 0;
}
.aplayer.no-destroy .aplayer-pic .aplayer-pause svg {
  position: absolute;
  top: 7px;
  left: 7px;
  height: 12px;
  width: 12px;
}